<h1>Code Model - Testing</h1>
<h3>ShowOrder</h3>

<style>
    th{border: 1px solid #dedede; padding: 2px 7px; font-size: 12px;}
    td{border: 1px solid #dedede; padding: 2px 7px; font-size: 12px;}
</style>

<table>
    <th>id</th>
    <th>from</th>
    <th>to</th>
    <th>price</th>
    <th>pickup</th>
    <th>return</th>
    <th>Client</th>
    <th>email</th>
    <th>phone</th>
    <?
        if(isset($order))
            foreach($order as $val):?>

            <tr>
                <td><?=$val->id?></td>
                <td><?=date('d.m.Y - H:i', $val->datefrom);?>h</td>
                <td><?=date('d.m.Y - H:i', $val->dateto);?>h</td>
                <td><?=$val->totalprice?> &euro;</td>
                <td><?=$val->pickup_loc?></td>
                <td><?=$val->return_loc?></td>
                <td><?=$val->firstName?></td>
                <td><?=$val->email ?></td>
                <td><?=$val->phone ?></td>
            </tr>

            <?endforeach;?>
</table>

<h5>Accessories - Extras</h5>
<table>
    <?
        if(isset($order_extras))
            foreach($order_extras as $val):?>

            <tr>
                <td><?=$val->type?></td>
                <td><?=$val->price?> &euro;</td>
            </tr>

            <?endforeach;?>
</table>